You should be able to delete all files in cache/ and they’ll be automatically regenerated – but I’m not sure why something would corrupt that file. Double-check your file permissions on the contents of that directory to ensure that something else outside OJS isn’t able to modify them.
Regards,
Alec Smecher
Public Knowledge Project Team
We’ve seen similar things happen before when a script on a shared server is abused to gain access. Automated attacks will sometimes attempt to modify PHP scripts on the server, which can cause unintended consequences. The best way to determine if that’s happening is to take note of the “date modified” of the file that’s been changed, and correlate that time and date against the access log to see if you can spot some unusual requests.
Regards,
Alec Smecher
Public Knowledge Project Team
We include a bot list with OJS for the purposes of filtering out requests from these from COUNTER statistics. That file is probably legit.
If you’ve suffered an automated attack, you’ll likely find your original problem recurring after a while. If it does happen, I’d suggest checking the modification date of the file as recommended above.
Regards,
Alec Smecher
Public Knowledge Project Team