Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Paginiation does not work when enabling caching

Solved by Michael View solution

Started by Michael 8 years ago · 6 replies · 755 views
8 years ago

I'm using the pagination plugin for a news archive. My system.ymal looks like this:
cache:
enabled: false
check:
method: file
driver: auto
prefix: g
clear_images_by_default: true
cli_compatibility: false
lifetime: 604800
gzip: false
allow_webserver_gzip: false

When I set cache: enabled to true the pagination does not work anymore. The url page parameter changes from :1 to :2 ect. but the content is always the content from the first page.
I'm using nginx with apc/apcu enabled.
What am I doing wrong?

👍 1
8 years ago

What theme are you using?

8 years ago

@fabbow: I already tried this. Unfortunately, without any change. Paging is still not working with caching enabled.

8 years ago Solution

I was able to fix the issue. It is related to the "Minify Html" plugin, I'm also using. When "Minify HTML cache" is disabled paging is working again with caching enabled. Im not sure if this behavior is intended. I looks like the minification of the cache entry removes the paging information.

👍 1
4 years ago

Remove the original Minify HTML plugin and use the new one HTML Minifier version 1.1.2 has fixed this issue on Feb 7th, 2022, verified, works well (I had the same issue)

👍 1

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 51 8 hours ago
Support · by Anna, 2 days ago
2 58 10 hours ago
Support · by Justin Young, 11 hours ago
1 30 11 hours ago
Support · by Duc , 1 week ago
2 63 5 days ago
Support · by Colin Hume, 1 week ago
2 55 5 days ago