PHP-Nuke Titanium HQ
     
PHP-Nuke Titanium v4.0.4 / PHP v8.2.10
Sponsor Tron for PHP-Nuke Titanium
::: There is so much more here to see, it takes 30 seconds to register an account and we don't even verify with e-mail! Just register we promise you won't be sorry... ::: Login or Register
IPHub is an IP lookup website featuring Proxy/VPN detection. A free API is available, so you can perform fraud checks on online stores, detect malicious players on online games and much more! Look at this! Click here Look at this! to sign up for FREE today at ipHub ::: Country Music: The Soul Circus Cowboys ::: Sponsor: Brandon Maintenance Management, LLC Phone: 813-846-2865 ::: Sponsor: Big Country Radio - The EJ Morning Show :::

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 268

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 268

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 268

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 268

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 276

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 276

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 268

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 268

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 268

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 268

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/includes/auth.php on line 328

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/modules/Forums/viewtopic.php on line 406

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/modules/Forums/viewtopic.php on line 536

Warning: Undefined array key "session_logged_in" in /home/dev4/public_html/modules/Forums/viewtopic.php on line 788

Warning: Undefined array key "session_id" in /home/dev4/public_html/includes/functions.php on line 1015


Deprecated: Implicit conversion from float 506360.00000000006 to int loses precision in /home/dev4/public_html/modules/Forums/viewtopic.php on line 2020

Deprecated: Implicit conversion from float 512306.00000000006 to int loses precision in /home/dev4/public_html/modules/Forums/viewtopic.php on line 2020
 
Recent Topics   Next 5 >>  
Forum Replies Last Post
Dragonfly
Started by Critical
PHP-Nuke Titanium - Community 2 Thu Apr 20, 2023 6:50 am
by Critical
Can you PM me the private link to the PHP 9 Repo
Started by YuckFou
PHP-Nuke Titanium - PHP 1 Tue Apr 18, 2023 11:08 am
by CodeBuzzard
Your_Account Module question?
Started by CyBorg
PHP-Nuke Titanium - Modules (Root) 1 Thu Apr 06, 2023 7:39 am
by Negan
Question Where is rectorphp storing cache files? 🧰
Started by CyBorg
Rector PHP 6 Sat Mar 25, 2023 8:12 am
by HiJacker
Important Admin Module Building Tutorial - ☢️ Poll
Started by TheGhost
PHP-Nuke Titanium - Modules (Admin) 0 Sun Mar 19, 2023 4:52 am
by TheGhost

Where is rectorphp storing cache files? 🧰
Post new topic Reply to topic printer-friendly view List users that have viewed this topic Thank Post   Forum Index Rector PHP
View previous topic View next topic
CyBorg Reply with quote
Developer
Developer
Joined Oct 15, 2022
Reputation: 17.9
votes: 1
online
Where is rectorphp storing cache files? 🧰
by CyBorg Sat Mar 18, 2023 5:15 am

I keep needing to redo files and after it is run I guess the cache files are stopping it from refactoring a 2nd time.

I have the modified version of rectorphp the one you fixed for nuke VPS.



Back to top
View user's profile Send CyBorg a private message
Thankful People
2 user(s) is/are thankful for this post.
TheGhost Reply with quote
Administrator
Developer
VIP Member
Joined Aug 23, 2022
Reputation: 15.1
votes: 3
online
Where is rectorphp storing cache files? 🧰
by TheGhost Sat Mar 18, 2023 5:25 am

— CyBorg
I keep needing to redo files and after it is run I guess the cache files are stopping it from refactoring a 2nd time.

I have the modified version of rectorphp the one you fixed for nuke VPS.


I wrote a function so that it puts the cache in the composer root directory.

Nette and Stan everything should be using the same cache folder.

vendor/composer/cache

RectorPHP cache files under vendor/composer/rector_cached_files

Make sure you do not delete any files from the composer root dir.

The function I wrote is in autoload_real.php in the composer root.

PHP:  [ Select all ]

function sys_get_local_temp_dir(){
$CachePath __DIR__;
return 
$CachePath;


I globally replaced sys_get_temp_dir() with sys_get_local_temp_dir()



Back to top
View user's profile Send TheGhost a private message Send TheGhost an email. Visit user's website Visit user's Facebook: ernest.buffington.1
Sponsor
CyBorg Reply with quote
Developer
Developer
Joined Oct 15, 2022
Reputation: 17.9
votes: 1
online
Where is rectorphp storing cache files? 🧰
by CyBorg Sat Mar 18, 2023 5:30 am

— TheGhost
— CyBorg
I keep needing to redo files and after it is run I guess the cache files are stopping it from refactoring a 2nd time.

I have the modified version of rectorphp the one you fixed for nuke VPS.


I wrote a function so that it puts the cache in the composer root directory.

Nette and Stan everything should be using the same cache folder.

vendor/composer/cache

RectorPHP cache files under vendor/composer/rector_cached_files

Make sure you do not delete any files from the composer root dir.

The function I wrote is in autoload_real.php in the composer root.


PHP:  [ Select all ]

function sys_get_local_temp_dir(){
$CachePath __DIR__;
return 
$CachePath;


I globally replaced sys_get_temp_dir() with sys_get_local_temp_dir()


Thanks Ghost, it was killing me I thought I looked everywhere.

LOL never did I imagine you would put them in with composer. Pretty clever shit right there!


Back to top
View user's profile Send CyBorg a private message
TheGhost Reply with quote
Administrator
Developer
VIP Member
Joined Aug 23, 2022
Reputation: 15.1
votes: 3
online
Where is rectorphp storing cache files? 🧰
by TheGhost Sat Mar 18, 2023 5:36 am

— CyBorg


Thanks Ghost, it was killing me I thought I looked everywhere.

LOL never did I imagine you would put them in with composer. Pretty clever shit right there!


It works because Stan checks for errors and creates a cache, then RectorPHP uses the cache files to make corrections and refactor.

That is why you sometimes have to clear the cache.

In the final release of all versions of nuke, you will have a RectorPHP clear cache button under your admin control panel.


Back to top
View user's profile Send TheGhost a private message Send TheGhost an email. Visit user's website Visit user's Facebook: ernest.buffington.1
Sponsor
CyBorg Reply with quote
Developer
Developer
Joined Oct 15, 2022
Reputation: 17.9
votes: 1
online
Where is rectorphp storing cache files? 🧰
by CyBorg Sat Mar 18, 2023 5:39 am

— TheGhost

It works because Stan checks for errors and creates a cache, then RectorPHP uses the cache files to make corrections and refactor.

That is why you sometimes have to clear the cache.

In the final release of all versions of nuke, you will have a RectorPHP clear cache button under your admin control panel.


That is killer man, that is the kinda shit I love!!!!


Back to top
View user's profile Send CyBorg a private message
HiJacker Reply with quote
Developer
Joined Nov 19, 2022
Reputation: 6
online
Where is rectorphp storing cache files? 🧰
by HiJacker Sat Mar 25, 2023 8:00 am

This is Heavy Duty Cool!


Back to top
View user's profile Send HiJacker a private message
Sponsor
HiJacker Reply with quote
Developer
Joined Nov 19, 2022
Reputation: 6
online
Where is rectorphp storing cache files? 🧰
by HiJacker Sat Mar 25, 2023 8:12 am

Tomas fixed the cache directory problem.

Maybe post something about how to use the new cache directory settings?



Back to top
View user's profile Send HiJacker a private message
Display posts from previous:

Post new topic Reply to topic printer-friendly view List users that have viewed this topic Thank Post   Forum Index Rector PHP All times are UTC - 5 Hours

Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Nuke Sentinel Portal Security 8.1 Bugs 0 CornSnorkle 363 Tue Jan 17, 2023 9:00 am
CornSnorkle View latest post
No new posts proarcade.php Could not update users table (Fixed) 1 php-nuke-titanium 632 Sat Oct 29, 2022 1:04 am
TheGhost View latest post
No new posts Arcade PM not sending on rank change (Fixed) 1 CyBorg 529 Fri Oct 28, 2022 8:23 pm
TheGhost View latest post
No new posts nuke_bbarcade_fav table does not exist (Fixed) 0 CodeBuzzard 515 Sat Oct 22, 2022 8:50 am
CodeBuzzard View latest post
No new posts Arcade comments.php Error Authenticating User (Fixed) 0 TheGhost 519 Fri Oct 21, 2022 8:13 pm
TheGhost View latest post