Ticket #533 (closed defect: wontfix)

Opened 3 years ago

Last modified 2 years ago

CACHE_MISS is unavailable in cml files

Reported by: mukai@… Owned by: jan
Priority: normal Milestone:
Component: mod_cml Version: 1.4.10
Severity: normal Keywords:
Cc: Blocked By:
Need User Feedback: Blocking:

Description

I tried to use mod_cml, but failed when I used CACHE_MISS and CACHE_HIT. I succeeded when I use 0 or 1 for return values.

The reason is that CACHE_* are boolean values but the return value is assumed as a number. In my environment (lua 5.0.2), lua_tonumber checks the type of specified variable, and returns 0 (==CACHE_HIT) if the specified valiable does not keep number. Therefore, cache-miss never occurs if CACHE_* are used.

IMO, lua_pushnumber should be used for CACHE_*, instead of lua_pushboolean.

Attachments

Change History

Changed 2 years ago by jan

  • status changed from new to closed
  • resolution set to wontfix

mod_cml is decreated in favour of mod_magnet in 1.4.12

Add/Change #533 (CACHE_MISS is unavailable in cml files)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.