Skip to content
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

support fragment caching #168

Open
darnocian opened this issue Nov 28, 2023 · 0 comments
Open

support fragment caching #168

darnocian opened this issue Nov 28, 2023 · 0 comments
Assignees
Labels
commercial support required commercial subscriber feature

Comments

@darnocian
Copy link
Collaborator

darnocian commented Nov 28, 2023

<% cache 'mykey' %>
      content to be cached
<% end %>

so if we have something like:

<% cache 'products'; for product in products %>
     <% product.id %> <% product.name %>
<% end ; end %>

this would allow the list of products to be cached.

helper methods:

  • invalidateCache(id)
  • getCacheTimeS(id)

context methods:

  • invalidateCache(id)

Need to provide:

  • cache provider (memory, redis, memcache, db)
var redisCfg := RedisConfig.Create();
with redisCfg  do
begin
    host := '192.168.1.42';
    port := 4242;
end;
context.cacheProvider := RedisCache(redisCfg);
@darnocian darnocian self-assigned this Feb 19, 2024
@darnocian darnocian added the commercial support required commercial subscriber feature label Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commercial support required commercial subscriber feature
Projects
None yet
Development

No branches or pull requests

1 participant