php, zend. smarty - Server displays old version of site
This is related to post: Server displays old version of site
To repeat the question:
Good day to all.
I have a site (created with zend framework and smarty) hosted on a virtual machine (vmware) with centOS 5.2. Everything worked fine for about 2 month, but a problem occurred now. I am trying to modify some .tpl files and after I save and upload on server (the one on the virtual machine) the server gives me the old version of the page.
Already cleared cache, change browser, etc... is not browser related. I tried on different computers and all have the same result.
I also checked the uploaded file and it is the new one.
If I delete the file I get the 开发者_StackOverflow中文版error (what is normal). If I delete the file then upload the new file I still get the old version.
I i delete everything inside the file (directly on the uploaded file - ftp) I still get the old version.
When I first ask this I got the suggestion to disable smarty caching, did it and worked... but it seems it was a coincidence and now it happens again (but the fix doesn't work :( ).
Does the FTP update the timestsamp properly?
We've had problems when deploying where our changed files don't get their modified timestamps updated which causes our opcode caching on the server to not read the new files.
If you have access, try stop/starting the service and see if that fixes the issue.
Edit: Comment Response
I assume you mean the cache and/or the compiled files that Smarty creates. Smarty compiles the templates into PHP, then if it's a static page, it can cache the resulting HTML. The opcode caching (typically APC on Apache) caches compile bytecode that is generated from the source files and is typically stored in memory wiki.
精彩评论