Thanks to visit codestin.com
Credit goes to github.com

Skip to content

entry date / expiration date not working properly #4584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jelle-burodeng opened this issue Nov 11, 2024 · 4 comments
Open

entry date / expiration date not working properly #4584

jelle-burodeng opened this issue Nov 11, 2024 · 4 comments

Comments

@jelle-burodeng
Copy link

We are experiencing an issue with the entry date. Our editors write articles, and set an entry date in the future for the article to go online. This was working just fine, untill we updated the site to 7.4.11.
We have to manually change the status to open. On another site (same EE version) we recently had the same issue the other way around, where the expiration date didn't get respected

@intoeetive
Copy link
Contributor

@jelle-burodeng what's the opening {exp:channel:entries template code that you have?

Also to make sure, the entry status is "open" but with entry date in the future? And you need to re-save the entry in order for it to show up?

As well, is there any caching involved?

@jelle-burodeng
Copy link
Author

it's an embed:
{embed="includes/.etalage" limit="8" sticky="yes" archive="no" start_on="-2 weeks" show_link="yes"}

{exp:channel:entries
    channel="nieuws|video"
    status="not closed"
    search:alleen_op_nvjnl_plaatsen="IS_EMPTY"
    sticky="{embed:sticky}"
    limit="{embed:limit}"
    start_on="{embed:start_on}"
    category="{embed:category}"
    dynamic="{if embed:archive == 'yes'}yes{if:else}no{/if}"
    disable="member_data|category_fields|pagination"
    cache="yes"
    refresh="36000"
}

the entry status is "open" but with entry date in the future? Yes.
And you need to re-save the entry in order for it to show up? Yes.

@jelle-burodeng
Copy link
Author

Any word on this @intoeetive ?

@intoeetive
Copy link
Contributor

@jelle-burodeng - sorry, somehow this came out of my radar.

So I see in your code that you have caching set to 10 hours. If the cache for the page was re-build close before the date when entry was supposed to go live (or expire) it will still be shown up for almost 10 hours - until the next cache rebuild.

Updating the entry clears the cache, but if you don't touch the database - the system will just serve whatever it has cached

So if you need the entries to go live/expire at exact time, you need to no cache at all, use smaller caching period or clear the caches at desired time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants