Ingenious
Well-known member
I created a basic plugin from one of the tutorials, to just look for an advert hook and then display a random banner.
This has been working fine for months but now I have an odd problem - I cannot make any changes to it!
The plugin looks for a specific hook then includes advert.php.
advert.php is a file that generates a random number and then includes another random file, such as banner1.php, banner2.php, banner3.php and so on.
No matter what changes I make to advert.php, they won't show, it keeps running as if the old version is there. No matter what changes I make to banner1.php (etc) they won't show either. I can even delete these files from the server, and the banners still run! How is this possible?
Yet if I change the plugin to include say advertnew.php instead of advert.php, then upload advertnew.php, the new file does indeed work. So the plugin file itself can be changed. Just every one of the existing included files, cannot.
I have ruled out my FTP because if I use a different PC and download the advert.php file, the changes I made are all there and correct. They just seem to be ignored by the server.
Why? Is there some sort of caching going on here? There is no caching defined in my config (I am on shared hosting anyway).
Anyone have any clues please?
In case anyone asks why don't I just rename the file as this works, the problem is I have around 30 advert files which all need changing, so that's a lot to rename and redo, I just want to edit the .php files and for these changes to work, as they should!
This has been working fine for months but now I have an odd problem - I cannot make any changes to it!
The plugin looks for a specific hook then includes advert.php.
advert.php is a file that generates a random number and then includes another random file, such as banner1.php, banner2.php, banner3.php and so on.
No matter what changes I make to advert.php, they won't show, it keeps running as if the old version is there. No matter what changes I make to banner1.php (etc) they won't show either. I can even delete these files from the server, and the banners still run! How is this possible?
Yet if I change the plugin to include say advertnew.php instead of advert.php, then upload advertnew.php, the new file does indeed work. So the plugin file itself can be changed. Just every one of the existing included files, cannot.
I have ruled out my FTP because if I use a different PC and download the advert.php file, the changes I made are all there and correct. They just seem to be ignored by the server.
Why? Is there some sort of caching going on here? There is no caching defined in my config (I am on shared hosting anyway).
Anyone have any clues please?
In case anyone asks why don't I just rename the file as this works, the problem is I have around 30 advert files which all need changing, so that's a lot to rename and redo, I just want to edit the .php files and for these changes to work, as they should!