File tree Expand file tree Collapse file tree
demos/SQLFiddle/SQLFiddle.Website Expand file tree Collapse file tree Original file line number Diff line number Diff line change 110110
111111# navbar a : hover {
112112 font-weight : bold;
113+ }
114+
115+ .cacheinfo {
116+ margin-left : 10px ;
117+ }
118+
119+ .cacheinfo .invalidation {
120+ font-weight : bold;
121+ margin-left : 20px ;
113122}
Original file line number Diff line number Diff line change 109109 }
110110 }
111111
112+ $div .append (' <h4>Cacheable: ' + (info .idempotent ? ' yes' : ' no' ) + ' </h4>' );
113+ (function () {
114+ var reads = info .readTables ;
115+ var writes = info .writeTables ;
116+ if (reads .length > 0 ) {
117+ $div .append (' <span class="cacheinfo">Depends on: ' + reads .join (' , ' ) + ' .</span>' );
118+ }
119+ if (writes .length > 0 ) {
120+ $div .append (' <span class="cacheinfo invalidation">Invalidates: ' + writes .join (' , ' ) + ' .</span>' );
121+ }
122+ })();
123+
112124 $output .html ($div);
113125 };
114126
You can’t perform that action at this time.
0 commit comments