Currently there are no function which can return the last modification of a page. We can only do this for content objects. I.e. we can generate the modification header based on the last modification time of the article/product/forum, but other content included in e.g. the menues would then not be considered.
We have discussed this, but we don't have a solution, yet. Any input is appreciated.
eZ publish 3 does send the header: X-Powered-By: eZ publish
>Currently there are no function which can return the last
>modification of a page. We can only do this for content
>objects. I.e. we can generate the modification header based
>on the last modification time of the article/product/forum,
>but other content included in e.g. the menues would then not >be considered.
>We have discussed this, but we don't have a solution, yet. >Any input is appreciated.
setting the mofication header to the modification date of the content object is the most logical to me, maybe with an ini setting to switch from the current behaviour.
We have a site, which gets new content "only" every few hours.
Between this updates, the site content is static.
Will it help to set the last-modified to the last update of the complete database? Well, almost "complete": You'd need to ignore session data, as they will change a lot. I don't know, if you can do that: Ask the database (or the DB handling functions in ezDB) "when was last update in content?"
How will that effect the log-in for users?
I mean: I frontpage of the site changes depending on user read rights. Plus, we have navigation elements, that show or hide depending on the user's user-group(s). I'm talking about ezP2, but I think, ezP3 has the same "problems".
How could I force eZ publish to present the content modified date in the Last-Modified header? I understand the implications, but this capability is important for us to put into place.
I have found the line in eZ's index.php which sets the Last-Modified date: header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . 'GMT' );
How do I change it?
Any help would be greatly appreciated!
Alex
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]
Alex, to get the modified header correctly you could send some header information in kernel/content/view.php. This would override the global header information.
You need to make sure that eZ publish stores the modification date to the cache file so you can fetch this from the cached files and use as header information.